<template>
   <p>子组件</p>
</template>


<script setup>
// const props = defineProps({'foo','age'})
const props = defineProps({
    foo:String,
    age:Number
})
</script>